﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeHouse.Server.Dto;
using LeHouse.Server.Dal;
namespace LeHouse.Server.Service
{

    public class System_DictionaryService : BaseService<System_Dictionary>
    {
        /// <summary>
        /// 获取全部下拉框
        /// </summary>
        protected override GenericBaseDAL<System_Dictionary> Dal
        {
            get { return new System_DictionaryDAL(); }
        }

        /// <summary>
        ///根据类型分组id获取属于该类型的字典信息
        /// </summary>
        /// <returns></returns>
        public System_Dictionary getDictionarysByDmenuid(int Dmenuid)
        {
            return new System_DictionaryDAL().getDictionarysByDmenuid(Dmenuid).FirstOrDefault();
        }


    }
}
